<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>

    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
        <%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>创建合同</title>
<link rel="stylesheet" type="text/css" href="css/css.css" />
<script type="text/javascript" src="js/jquery.min.js"></script>
<style>
td{
	padding-left:16px;
	border:none;
	text-align:left;
}
.td{
	font-size: 16px;
	border:none;
	text-align:right;
}
#button{
	border-radius:10px;
	margin-left: 10px;
	width: 135px;
	height: 30px;
	border: none;
	font-size: 16px;
	color: #fff;
	background-color: #47a4e1;
}
</style>
</head>
<body>
	<div id="pageAll">
		<div class="pageTop">
			<div class="page">
				<img src="img/coin02.png" /><span><a href="main.do">首页</a>&nbsp;-&nbsp;
				<a href="contractmanage.do">合同管理</a>&nbsp;-</span>&nbsp;合同详情
			</div>
		</div>
		<div class="page ">
			<!-- 上传广告页面样式 -->
			<div class="banneradd bor">
				<form action="#" method="post">
				<div class="baTopNo">
					<span>合同基本信息</span>
					
				</div>
				<div class="baBody" >
					<table style="border:none;margin:0px;padding:0px;line-height:40px">	
						<tr class="bbD"  >
							<td class="td">合同名称：</td><td >${contract.name }	</td>				
						</tr>
						<tr class="bbD">
							<td class="td">机构名称：</td><td>${contract.organization.name }</td>
						</tr>
						
						<tr class="bbD" >
							<td class="td">购买产品类别：</td>
							<td>
								<c:if test="${contract.aproduct ==1}">网站专区&nbsp;&nbsp;</c:if>
								<c:if test="${contract.bproduct ==1}">微刊&nbsp;&nbsp;</c:if>
								<c:if test="${contract.cproduct ==1}">微博公共号</c:if>
								
							</td>
						</tr>
						
						<tr class="bbD">
							<td class="td">服务方式：</td>
							<td>
								<c:if test="${contract.servicetype ==1}">镜像</c:if>
								<c:if test="${contract.servicetype ==2}">远程</c:if>
								
							</td>
						</tr>
						
						
						<tr class="bbD">
							<td class="td">合同性质：</td>
							<td>
									<c:if test="${contract.purpose ==1}">新增</c:if>
									<c:if test="${contract.purpose ==2}">正式</c:if>
									<c:if test="${contract.purpose ==3}">已签</c:if>
									<c:if test="${contract.purpose ==4}">续约</c:if>
							</td>
						</tr>
						
						<tr class="bbD">
							<td class="td">合同类型：</td>
							<td>
									<c:if test="${contract.contracttype ==1}">销售</c:if>
									<c:if test="${contract.contracttype ==2}">采购</c:if>
							</td>
						</tr>
						
						<tr class="bbD">
							<td class="td">合同经办人：</td><td>${contract.organization.contact.ename }</td>
						</tr>
						<tr class="bbD">
							<td class="td">合同联系人：</td><td>${contract.organization.contact.name }</td>
						</tr>
						<tr class="bbD">
							<td class="td">合同总金额：</td><td>${contract.amount }元</td>
						</tr>
						
						<tr class="bbD">
							<td class="td">付款方式：</td>
							<td>
									<c:if test="${contract.paytype ==1}">一次性付款</c:if>
									<c:if test="${contract.paytype ==2}">分期付款</c:if>
							</td>
						</tr>
						<tr class="bbD">
							<td class="td">签约日期：</td><td><fmt:formatDate value="${contract.signdate }" pattern="yyyy-MM-dd"/></td>
						</tr>
						<tr class="bbD">
							<td class="td">截止日期：</td><td><fmt:formatDate value="${contract.deadline }" pattern="yyyy-MM-dd"/></td>
						</tr>
						<tr class="bbD">
							<td class="td">合同日期：</td><td><fmt:formatDate value="${contract.begindate }" pattern="yyyy-MM-dd"/>至<fmt:formatDate value="${contract.enddate }" pattern="yyyy-MM-dd"/></td>
						</tr>
						<tr class="bbD">
							<td class="td">备注：</td><td>${contract.remark }</td>
						</tr>
						<tr class="bbD">
							<td class="td">合同文件：</td><td><a href="filedown.do?id=${contract.id }" >点击下载</a></td>
						</tr>
					</table>	
				</div>	
				
				<div class="baTopNo">
					<span>其他信息</span>
					<hr/>
				</div>	
					
				<div class="baBody">c
					<table>
						<tr class="bbD">
							<td class="td">审核状态：</td>
							<td>
										<c:if test="${contract.checkstate ==1}">未审核</c:if>
										<c:if test="${contract.checkstate ==2}">审核中</c:if>
										<c:if test="${contract.checkstate ==3}">已审核</c:if>
							</td>
						</tr>
					</table>	
					<br/>
					<table>
					<tr class="bbD">
						<td class="td"></td>
						<td>
								<a href="contractmanage.do"><input type="button" value="确认" id="button" /></a>
						</td>
					</tr>
					</table>
				</div>
				</form>
			</div>

			<!-- 上传广告页面样式end -->
		</div>
	</div>
<script >
</script>	
</body>
</html>
